home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 May / EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso / ghost / gs403src_amiga.lha / gs4.03 / int.mak.in < prev    next >
Text File  |  1997-03-16  |  44KB  |  1,201 lines

  1. #    Copyright (C) 1995, 1996 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. # (Platform-independent) makefile for language interpreters.
  16. # See the end of gs.mak for where this fits into the build process.
  17.  
  18. # Define the name of this makefile.
  19. INT_MAK=int.mak
  20.  
  21. # ======================== Interpreter support ======================== #
  22.  
  23. # This is support code for all interpreters, not just PostScript and PDF.
  24. # It knows about the PostScript data types, but isn't supposed to
  25. # depend on anything outside itself.
  26.  
  27. errors_h=errors.h
  28. idebug_h=idebug.h
  29. idict_h=idict.h
  30. igc_h=igc.h
  31. igcstr_h=igcstr.h
  32. iname_h=iname.h
  33. inamedef_h=inamedef.h $(gconfigv_h) $(iname_h)
  34. ipacked_h=ipacked.h
  35. iref_h=iref.h
  36. isave_h=isave.h
  37. isstate_h=isstate.h
  38. istruct_h=istruct.h $(gsstruct_h)
  39. ivmspace_h=ivmspace.h
  40. opdef_h=opdef.h
  41. # Nested include files
  42. ghost_h=ghost.h $(gx_h) $(iref_h)
  43. imemory_h=imemory.h $(gsalloc_h) $(ivmspace_h)
  44. ialloc_h=ialloc.h $(imemory_h)
  45. iastruct_h=iastruct.h $(gxobj_h) $(ialloc_h)
  46. iastate_h=iastate.h $(gxalloc_h) $(ialloc_h) $(istruct_h)
  47. store_h=store.h $(ialloc_h)
  48.  
  49. GH=$(AK) $(ghost_h)
  50.  
  51. isupport1_=ialloc.$(OBJ) igc.$(OBJ) igcref.$(OBJ) igcstr.$(OBJ)
  52. isupport2_=ilocate.$(OBJ) iname.$(OBJ) isave.$(OBJ)
  53. isupport_=$(isupport1_) $(isupport2_)
  54. isupport.dev: $(INT_MAK) $(ECHOGS_XE) $(isupport_)
  55.     $(SETMOD) isupport $(isupport1_)
  56.     $(ADDMOD) isupport -obj $(isupport2_)
  57.  
  58. ialloc.$(OBJ): ialloc.c $(AK) $(gx_h) \
  59.   $(errors_h) $(gsstruct_h) $(gxarith_h) \
  60.   $(iastate_h) $(iref_h) $(ivmspace_h) $(store_h)
  61.  
  62. # igc.c, igcref.c, and igcstr.c should really be in the dpsand2 list,
  63. # but since all the GC enumeration and relocation routines refer to them,
  64. # it's too hard to separate them out from the Level 1 base.
  65. igc.$(OBJ): igc.c $(GH) \
  66.   $(errors_h) $(gsexit_h) $(gsmdebug_h) $(gsstruct_h) $(gsutil_h) \
  67.   $(iastate_h) $(idict_h) $(igc_h) $(igcstr_h) $(inamedef_h) \
  68.   $(ipacked_h) $(isave_h) $(isstate_h) $(istruct_h) $(opdef_h) $(store_h)
  69.  
  70. igcref.$(OBJ): igcref.c $(GH) \
  71.   $(gsexit_h) $(iastate_h) $(idebug_h) $(igc_h) $(iname_h) $(ipacked_h)
  72.  
  73. igcstr.$(OBJ): igcstr.c $(GH) \
  74.   $(gsmdebug_h) $(gsstruct_h) $(iastate_h) $(igcstr_h)
  75.  
  76. ilocate.$(OBJ): ilocate.c $(GH) $(memory__h) \
  77.   $(errors_h) $(gsexit_h) $(gsstruct_h) \
  78.   $(iastate_h) $(igc_h) $(igcstr_h) $(iname_h) $(ipacked_h) $(isstate_h) $(ivmspace_h) \
  79.   $(store_h)
  80.  
  81. iname.$(OBJ): iname.c $(GH) $(memory__h) $(string__h) \
  82.   $(gsstruct_h) $(errors_h) $(imemory_h) $(inamedef_h) $(isave_h) $(store_h)
  83.  
  84. isave.$(OBJ): isave.c $(GH) \
  85.   $(errors_h) $(gsexit_h) $(gsstruct_h) $(gsutil_h) \
  86.   $(iastate_h) $(inamedef_h) $(isave_h) $(isstate_h) $(ivmspace_h) \
  87.   $(ipacked_h) $(store_h)
  88.  
  89. ### Include files
  90.  
  91. idparam_h=idparam.h
  92. ilevel_h=ilevel.h
  93. iparam_h=iparam.h $(gsparam_h)
  94. istack_h=istack.h
  95. iutil_h=iutil.h
  96. opcheck_h=opcheck.h
  97. opextern_h=opextern.h
  98. # Nested include files
  99. dstack_h=dstack.h $(istack_h)
  100. estack_h=estack.h $(istack_h)
  101. ostack_h=ostack.h $(istack_h)
  102. oper_h=oper.h $(iutil_h) $(opcheck_h) $(opdef_h) $(opextern_h) $(ostack_h)
  103.  
  104. idebug.$(OBJ): idebug.c $(GH) \
  105.   $(ialloc_h) $(idebug_h) $(idict_h) $(iname_h) $(istack_h) $(iutil_h) $(ivmspace_h) \
  106.   $(ostack_h) $(opdef_h) $(ipacked_h) $(store_h)
  107.  
  108. idict.$(OBJ): idict.c $(GH) $(errors_h) \
  109.   $(ialloc_h) $(idebug_h) $(ivmspace_h) $(inamedef_h) $(ipacked_h) \
  110.   $(isave_h) $(store_h) $(iutil_h) $(idict_h) $(dstack_h)
  111.  
  112. idparam.$(OBJ): idparam.c $(GH) $(errors_h) \
  113.   $(gsmatrix_h) $(gsuid_h) \
  114.   $(idict_h) $(idparam_h) $(ilevel_h) $(imemory_h) $(iname_h) $(iutil_h) \
  115.   $(oper_h) $(store_h)
  116.  
  117. iparam.$(OBJ): iparam.c $(GH) \
  118.   $(ialloc_h) $(idict_h) $(iname_h) $(imemory_h) $(iparam_h) $(istack_h) $(iutil_h) $(ivmspace_h) \
  119.   $(opcheck_h) $(store_h)
  120.  
  121. istack.$(OBJ): istack.c $(GH) $(memory__h) \
  122.   $(errors_h) $(gsstruct_h) $(gsutil_h) \
  123.   $(ialloc_h) $(istack_h) $(istruct_h) $(iutil_h) $(ivmspace_h) $(store_h)
  124.  
  125. iutil.$(OBJ): iutil.c $(GH) $(math__h) $(memory__h) $(string__h) \
  126.   $(errors_h) $(idict_h) $(imemory_h) $(iutil_h) $(ivmspace_h) \
  127.   $(iname_h) $(ipacked_h) $(store_h) \
  128.   $(gsmatrix_h) $(gsutil_h)
  129.  
  130. # ======================== PostScript Level 1 ======================== #
  131.  
  132. ###### Include files
  133.  
  134. files_h=files.h
  135. fname_h=fname.h
  136. ichar_h=ichar.h
  137. icharout_h=icharout.h
  138. icolor_h=icolor.h
  139. icsmap_h=icsmap.h
  140. ifont_h=ifont.h $(gsstruct_h)
  141. iimage_h=iimage.h
  142. imain_h=imain.h $(gsexit_h)
  143. imainarg_h=imainarg.h
  144. iminst_h=iminst.h $(imain_h)
  145. interp_h=interp.h
  146. iparray_h=iparray.h
  147. iscannum_h=iscannum.h
  148. istream_h=istream.h
  149. main_h=main.h $(iminst_h)
  150. overlay_h=overlay.h
  151. sa85x_h=sa85x.h
  152. sbtx_h=sbtx.h
  153. sbwbs_h=sbwbs.h
  154. scanchar_h=scanchar.h
  155. sdct_h=sdct.h
  156. sfilter_h=sfilter.h $(gstypes_h)
  157. shcgen_h=shcgen.h
  158. sjpeg_h=sjpeg.h
  159. smtf_h=smtf.h
  160. sstring_h=sstring.h
  161. # Nested include files
  162. bfont_h=bfont.h $(ifont_h)
  163. ifilter_h=ifilter.h $(istream_h) $(ivmspace_h)
  164. igstate_h=igstate.h $(gsstate_h) $(gxstate_h) $(istruct_h)
  165. iscan_h=iscan.h $(sa85x_h) $(sstring_h)
  166. sbhc_h=sbhc.h $(shc_h)
  167. # Include files for optional features
  168. ibnum_h=ibnum.h
  169.  
  170. ### Initialization and scanning
  171.  
  172. iconfig=iconfig$(CONFIG)
  173. $(iconfig).$(OBJ): iconf.c $(stdio__h) \
  174.   $(gconfig_h) $(gscdefs_h) $(gsmemory_h) \
  175.   $(files_h) $(imain_h) $(iref_h) $(ivmspace_h) $(opdef_h) $(stream_h)
  176.     $(RM_) gconfig.h
  177.     $(RM_) $(iconfig).c
  178.     $(CP_) $(gconfig_h) gconfig.h
  179.     $(CP_) $(srcdir)/iconf.c $(iconfig).c
  180.     $(CCC) -I. -I$(srcdir) $(iconfig).c
  181.     $(RM_) gconfig.h
  182.     $(RM_) $(iconfig).c
  183.  
  184. iinit.$(OBJ): iinit.c $(GH) \
  185.   $(gscdefs_h) $(gsexit_h) $(gsstruct_h) \
  186.   $(ialloc_h) $(idict_h) $(dstack_h) $(errors_h) \
  187.   $(ilevel_h) $(iname_h) $(interp_h) $(opdef_h) \
  188.   $(ipacked_h) $(iparray_h) $(iutil_h) $(ivmspace_h) $(store_h)
  189.  
  190. iscan.$(OBJ): iscan.c $(GH) $(ctype__h) \
  191.   $(ialloc_h) $(idict_h) $(dstack_h) $(errors_h) $(files_h) \
  192.   $(ilevel_h) $(iutil_h) $(iscan_h) $(iscannum_h) $(istruct_h) $(ivmspace_h) \
  193.   $(iname_h) $(ipacked_h) $(iparray_h) $(istream_h) $(ostack_h) $(store_h) \
  194.   $(stream_h) $(strimpl_h) $(sfilter_h) $(scanchar_h)
  195.  
  196. iscannum.$(OBJ): iscannum.c $(GH) $(math__h) \
  197.   $(errors_h) $(iscannum_h) $(scanchar_h) $(store_h) $(stream_h)
  198.  
  199. iscantab.$(OBJ): iscantab.c $(AK) \
  200.   $(stdpre_h) $(scommon_h) $(scanchar_h)
  201.  
  202. ### Streams
  203.  
  204. # Define which implementation of files we are using (sfile or sfileno).
  205. # This can be overridden on the `make' command line.
  206. #sfile_impl=sfileno
  207. sfile_impl=sfile
  208.  
  209. sfile.$(OBJ): sfile.c $(AK) $(stdio__h) $(memory__h) \
  210.   $(gdebug_h) $(gpcheck_h) $(stream_h) $(strimpl_h)
  211.  
  212. sfileno.$(OBJ): sfileno.c $(AK) $(stdio__h) $(errno__h) $(memory__h) \
  213.   $(gdebug_h) $(gpcheck_h) $(stream_h) $(strimpl_h)
  214.  
  215. sfilter1.$(OBJ): sfilter1.c $(AK) $(stdio__h) $(memory__h) \
  216.   $(sfilter_h) $(strimpl_h)
  217.  
  218. sstring.$(OBJ): sstring.c $(AK) $(stdio__h) $(memory__h) $(string__h) \
  219.   $(scanchar_h) $(sstring_h) $(strimpl_h)
  220.  
  221. ###### Operators
  222.  
  223. OP=$(GH) $(errors_h) $(oper_h)
  224.  
  225. ### Non-graphics operators
  226.  
  227. zarith.$(OBJ): zarith.c $(OP) $(math__h) $(store_h)
  228.  
  229. zarray.$(OBJ): zarray.c $(OP) $(ialloc_h) $(ipacked_h) $(store_h)
  230.  
  231. zcontrol.$(OBJ): zcontrol.c $(OP) \
  232.   $(estack_h) $(ipacked_h) $(iutil_h) $(store_h)
  233.  
  234. zdict.$(OBJ): zdict.c $(OP) \
  235.   $(dstack_h) $(idict_h) $(ilevel_h) $(iname_h) $(ipacked_h) $(ivmspace_h) \
  236.   $(store_h)
  237.  
  238. zfile.$(OBJ): zfile.c $(OP) $(stat__h) $(gp_h) \
  239.   $(gsstruct_h) $(gxiodev_h) \
  240.   $(ialloc_h) $(estack_h) $(files_h) $(fname_h) $(ilevel_h) $(interp_h) $(iutil_h) \
  241.   $(isave_h) $(main_h) $(sfilter_h) $(stream_h) $(strimpl_h) $(store_h)
  242.  
  243. zfname.$(OBJ): zfname.c $(OP) \
  244.   $(fname_h) $(gxiodev_h) $(ialloc_h) $(stream_h)
  245.  
  246. zfileio.$(OBJ): zfileio.c $(OP) $(gp_h) \
  247.   $(files_h) $(ifilter_h) $(store_h) $(stream_h) $(strimpl_h) \
  248.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  249.  
  250. zfilter.$(OBJ): zfilter.c $(OP) \
  251.   $(gsstruct_h) $(files_h) $(ialloc_h) $(idict_h) $(idparam_h) $(ifilter_h) \
  252.   $(sfilter_h) $(srlx_h) $(sstring_h) $(stream_h) $(strimpl_h)
  253.  
  254. zfproc.$(OBJ): zfproc.c $(GH) $(errors_h) $(oper_h) \
  255.   $(estack_h) $(files_h) $(gsstruct_h) $(ialloc_h) $(ifilter_h) $(istruct_h) \
  256.   $(store_h) $(stream_h) $(strimpl_h)
  257.  
  258. zgeneric.$(OBJ): zgeneric.c $(OP) \
  259.   $(idict_h) $(estack_h) $(ivmspace_h) $(iname_h) $(ipacked_h) $(store_h)
  260.  
  261. ziodev.$(OBJ): ziodev.c $(OP) $(memory__h) $(string__h) $(gp_h) $(gpcheck_h) \
  262.   $(gsstruct_h) $(gxiodev_h) \
  263.   $(files_h) $(ialloc_h) $(ivmspace_h) $(store_h) $(stream_h)
  264.  
  265. zmath.$(OBJ): zmath.c $(OP) $(math__h) $(gxfarith_h) $(store_h)
  266.  
  267. zmisc.$(OBJ): zmisc.c $(OP) $(gscdefs_h) $(gp_h) \
  268.   $(errno__h) $(memory__h) $(string__h) \
  269.   $(ialloc_h) $(idict_h) $(dstack_h) $(iname_h) $(ivmspace_h) $(ipacked_h) $(store_h)
  270.  
  271. zpacked.$(OBJ): zpacked.c $(OP) \
  272.   $(ialloc_h) $(idict_h) $(ivmspace_h) $(iname_h) $(ipacked_h) $(iparray_h) \
  273.   $(istack_h) $(store_h)
  274.  
  275. zrelbit.$(OBJ): zrelbit.c $(OP) $(gsutil_h) $(store_h) $(idict_h)
  276.  
  277. zstack.$(OBJ): zstack.c $(OP) $(ialloc_h) $(istack_h) $(store_h)
  278.  
  279. zstring.$(OBJ): zstring.c $(OP) $(gsutil_h) \
  280.   $(ialloc_h) $(iname_h) $(ivmspace_h) $(store_h)
  281.  
  282. zsysvm.$(OBJ): zsysvm.c $(OP)
  283.  
  284. ztoken.$(OBJ): ztoken.c $(OP) \
  285.   $(estack_h) $(files_h) $(gsstruct_h) $(iscan_h) \
  286.   $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  287.  
  288. ztype.$(OBJ): ztype.c $(OP) $(math__h) \
  289.   $(dstack_h) $(idict_h) $(imemory_h) $(iname_h) \
  290.   $(iscan_h) $(iutil_h) $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  291.  
  292. # Note that zusparam includes both Level 1 and Level 2 operators.
  293. zusparam.$(OBJ): zusparam.c $(OP) \
  294.   $(gscdefs_h) $(gsfont_h) $(gsstruct_h) $(gsutil_h) $(gxht_h) \
  295.   $(ialloc_h) $(idict_h) $(idparam_h) $(iparam_h) $(dstack_h) $(estack_h) \
  296.   $(iname_h) $(iutil2_h) $(store_h)
  297.  
  298. zvmem.$(OBJ): zvmem.c $(OP) \
  299.   $(ialloc_h) $(idict_h) $(dstack_h) $(estack_h) $(isave_h) $(igstate_h) $(store_h) \
  300.   $(gsmatrix_h) $(gsstate_h) $(gsstruct_h)
  301.  
  302. ### Graphics operators
  303.  
  304. zchar.$(OBJ): zchar.c $(OP) \
  305.   $(gsstruct_h) $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) \
  306.   $(gschar_h) $(gxdevice_h) $(gxfont_h) $(gzpath_h) $(gzstate_h) \
  307.   $(ialloc_h) $(ichar_h) $(idict_h) $(ifont_h) $(estack_h) \
  308.   $(ilevel_h) $(iname_h) $(igstate_h) $(ipacked_h) $(store_h)
  309.  
  310. # zcharout is used for Type 1 and Type 42 fonts only.
  311. zcharout.$(OBJ): zchar.c $(OP) \
  312.   $(gschar_h) $(gxdevice_h) $(gxfont_h) \
  313.   $(dstack_h) $(estack_h) $(ichar_h) $(icharout_h) \
  314.   $(idict_h) $(ifont_h) $(igstate_h) $(store_h)
  315.  
  316. zcolor.$(OBJ): zcolor.c $(OP) \
  317.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gxdevice_h) $(gxcmap_h) \
  318.   $(ialloc_h) $(icolor_h) $(estack_h) $(iutil_h) $(igstate_h) $(store_h)
  319.  
  320. zdevice.$(OBJ): zdevice.c $(OP) \
  321.   $(ialloc_h) $(idict_h) $(igstate_h) $(iname_h) $(interp_h) $(iparam_h) $(ivmspace_h) \
  322.   $(gsmatrix_h) $(gsstate_h) $(gxdevice_h) $(store_h)
  323.  
  324. zfont.$(OBJ): zfont.c $(OP) \
  325.   $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) $(gxfcache_h) \
  326.   $(ialloc_h) $(idict_h) $(igstate_h) $(iname_h) $(isave_h) $(ivmspace_h) \
  327.   $(bfont_h) $(store_h)
  328.  
  329. zfont2.$(OBJ): zfont2.c $(OP) \
  330.   $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  331.   $(ialloc_h) $(bfont_h) $(idict_h) $(idparam_h) $(ilevel_h) $(iname_h) $(istruct_h) \
  332.   $(ipacked_h) $(store_h)
  333.  
  334. zgstate.$(OBJ): zgstate.c $(OP) \
  335.   $(gsmatrix_h) $(ialloc_h) $(idict_h) $(igstate_h) $(istruct_h) $(store_h)
  336.  
  337. zht.$(OBJ): zht.c $(OP) \
  338.   $(gsmatrix_h) $(gsstate_h) $(gsstruct_h) $(gxdevice_h) $(gzht_h) \
  339.   $(ialloc_h) $(estack_h) $(igstate_h) $(store_h)
  340.  
  341. zmatrix.$(OBJ): zmatrix.c $(OP) $(gsmatrix_h) $(igstate_h) $(gscoord_h) $(store_h)
  342.  
  343. zpaint.$(OBJ): zpaint.c $(OP) \
  344.   $(estack_h) $(ialloc_h) $(ifilter_h) $(igstate_h) $(iimage_h) $(ilevel_h) \
  345.   $(gscspace_h) $(gsimage_h) $(gsmatrix_h) $(gspaint_h) $(gsstruct_h) \
  346.   $(store_h) $(stream_h)
  347.  
  348. zpath.$(OBJ): zpath.c $(OP) $(math__h) \
  349.   $(gsmatrix_h) $(gspath_h) $(igstate_h) $(store_h)
  350.  
  351. # Define the base PostScript language interpreter.
  352. # This is the subset of PostScript Level 1 required by our PDF reader.
  353.  
  354. INT1=idebug.$(OBJ) idict.$(OBJ) idparam.$(OBJ) iinit.$(OBJ)
  355. INT2=interp.$(OBJ) iparam.$(OBJ) ireclaim.$(OBJ)
  356. INT3=iscan.$(OBJ) iscannum.$(OBJ) iscantab.$(OBJ) istack.$(OBJ) iutil.$(OBJ)
  357. INT4=$(sfile_impl).$(OBJ) sfilter1.$(OBJ) sstring.$(OBJ) stream.$(OBJ)
  358. Z1=zarith.$(OBJ) zarray.$(OBJ) zcontrol.$(OBJ) zdict.$(OBJ)
  359. Z1OPS=zarith zarray zcontrol zdict
  360. Z2=zfile.$(OBJ) zfileio.$(OBJ) zfilter.$(OBJ) zfname.$(OBJ) zfproc.$(OBJ)
  361. Z2OPS=zfile zfileio zfilter zfproc
  362. Z3=zgeneric.$(OBJ) ziodev.$(OBJ) zmath.$(OBJ) zmisc.$(OBJ) zpacked.$(OBJ)
  363. Z3OPS=zgeneric ziodev zmath zmisc zpacked
  364. Z4=zrelbit.$(OBJ) zstack.$(OBJ) zstring.$(OBJ) zsysvm.$(OBJ)
  365. Z4OPS=zrelbit zstack zstring zsysvm
  366. Z5=ztoken.$(OBJ) ztype.$(OBJ) zusparam.$(OBJ) zvmem.$(OBJ)
  367. Z5OPS=ztoken ztype zusparam zvmem
  368. Z6=zchar.$(OBJ) zcolor.$(OBJ) zdevice.$(OBJ) zfont.$(OBJ) zfont2.$(OBJ)
  369. Z6OPS=zchar zcolor zdevice zfont zfont2
  370. Z7=zgstate.$(OBJ) zht.$(OBJ) zmatrix.$(OBJ) zpaint.$(OBJ) zpath.$(OBJ)
  371. Z7OPS=zgstate zht zmatrix zpaint zpath
  372. # We have to be a little underhanded with *config.$(OBJ) so as to avoid
  373. # circular definitions.
  374. INT_OBJS=imainarg.$(OBJ) imain.$(OBJ) \
  375.   $(INT1) $(INT2) $(INT3) $(INT4) \
  376.   $(Z1) $(Z2) $(Z3) $(Z4) $(Z5) $(Z6) $(Z7)
  377. INT_CONFIG=$(gconfig).$(OBJ) $(gscdefs).$(OBJ) $(iconfig).$(OBJ) \
  378.   iccinit$(COMPILE_INITS).$(OBJ)
  379. INT_ALL=$(INT_OBJS) $(INT_CONFIG)
  380. # We omit libcore.dev, which should be included here, because problems
  381. # with the Unix linker require libcore to appear last in the link list
  382. # when libcore is really a library.
  383. # We omit $(INT_CONFIG) from the dependency list because they have special
  384. # dependency requirements and are added to the link list at the very end.
  385. # zfilter.c shouldn't include the RLE and RLD filters, but we don't want to
  386. # change this now.
  387. psbase.dev: $(INT_MAK) $(ECHOGS_XE) $(INT_OBJS) isupport.dev rld.dev rle.dev
  388.     $(SETMOD) psbase imainarg.$(OBJ) imain.$(OBJ)
  389.     $(ADDMOD) psbase -obj $(INT_CONFIG)
  390.     $(ADDMOD) psbase -obj $(INT1)
  391.     $(ADDMOD) psbase -obj $(INT2)
  392.     $(ADDMOD) psbase -obj $(INT3)
  393.     $(ADDMOD) psbase -obj $(INT4)
  394.     $(ADDMOD) psbase -obj $(Z1)
  395.     $(ADDMOD) psbase -oper $(Z1OPS)
  396.     $(ADDMOD) psbase -obj $(Z2)
  397.     $(ADDMOD) psbase -oper $(Z2OPS)
  398.     $(ADDMOD) psbase -obj $(Z3)
  399.     $(ADDMOD) psbase -oper $(Z3OPS)
  400.     $(ADDMOD) psbase -obj $(Z4)
  401.     $(ADDMOD) psbase -oper $(Z4OPS)
  402.     $(ADDMOD) psbase -obj $(Z5)
  403.     $(ADDMOD) psbase -oper $(Z5OPS)
  404.     $(ADDMOD) psbase -obj $(Z6)
  405.     $(ADDMOD) psbase -oper $(Z6OPS)
  406.     $(ADDMOD) psbase -obj $(Z7)
  407.     $(ADDMOD) psbase -oper $(Z7OPS)
  408.     $(ADDMOD) psbase -iodev stdin stdout stderr lineedit statementedit
  409.     $(ADDMOD) psbase -include isupport rld rle
  410.  
  411. # -------------------------- Feature definitions -------------------------- #
  412.  
  413. # ---------------- Full Level 1 interpreter ---------------- #
  414.  
  415. level1.dev: $(INT_MAK) $(ECHOGS_XE) psbase.dev bcp.dev hsb.dev path1.dev type1.dev
  416.     $(SETMOD) level1 -include psbase bcp hsb path1 type1
  417.     $(ADDMOD) level1 -emulator PostScript PostScriptLevel1
  418.  
  419. # -------- Level 1 color extensions (CMYK color and colorimage) -------- #
  420.  
  421. color.dev: $(INT_MAK) $(ECHOGS_XE) cmyklib.dev cmykread.dev
  422.     $(SETMOD) color -include cmyklib cmykread
  423.  
  424. cmykread_=zcolor1.$(OBJ) zht1.$(OBJ)
  425. cmykread.dev: $(INT_MAK) $(ECHOGS_XE) $(cmykread_)
  426.     $(SETMOD) cmykread $(cmykread_)
  427.     $(ADDMOD) cmykread -oper zcolor1 zht1
  428.  
  429. zcolor1.$(OBJ): zcolor1.c $(OP) \
  430.   $(gscolor1_h) \
  431.   $(gxcmap_h) $(gxcspace_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) \
  432.   $(gzstate_h) \
  433.   $(ialloc_h) $(icolor_h) $(iimage_h) $(estack_h) $(iutil_h) $(igstate_h) $(store_h)
  434.  
  435. zht1.$(OBJ): zht1.c $(OP) \
  436.   $(gsmatrix_h) $(gsstate_h) $(gsstruct_h) $(gxdevice_h) $(gzht_h) \
  437.   $(ialloc_h) $(estack_h) $(igstate_h) $(store_h)
  438.  
  439. # ---------------- HSB color ---------------- #
  440.  
  441. hsb_=zhsb.$(OBJ)
  442. hsb.dev: $(INT_MAK) $(ECHOGS_XE) $(hsb_) hsblib.dev
  443.     $(SETMOD) hsb $(hsb_)
  444.     $(ADDMOD) hsb -include hsblib
  445.     $(ADDMOD) hsb -oper zhsb
  446.  
  447. zhsb.$(OBJ): zhsb.c $(OP) \
  448.   $(gshsb_h) $(igstate_h) $(store_h)
  449.  
  450. # ---- Level 1 path miscellany (arcs, pathbbox, path enumeration) ---- #
  451.  
  452. path1_=zpath1.$(OBJ)
  453. path1.dev: $(INT_MAK) $(ECHOGS_XE) $(path1_) path1lib.dev
  454.     $(SETMOD) path1 $(path1_)
  455.     $(ADDMOD) path1 -include path1lib
  456.     $(ADDMOD) path1 -oper zpath1
  457.  
  458. zpath1.$(OBJ): zpath1.c $(OP) \
  459.   $(ialloc_h) $(estack_h) $(gspath_h) $(gsstruct_h) $(igstate_h) $(store_h)
  460.  
  461. # ================ Level-independent PostScript options ================ #
  462.  
  463. # ---------------- BCP filters ---------------- #
  464.  
  465. bcp_=sbcp.$(OBJ) zfbcp.$(OBJ)
  466. bcp.dev: $(INT_MAK) $(ECHOGS_XE) $(bcp_)
  467.     $(SETMOD) bcp $(bcp_)
  468.     $(ADDMOD) bcp -oper zfbcp
  469.  
  470. sbcp.$(OBJ): sbcp.c $(AK) $(stdio__h) \
  471.   $(sfilter_h) $(strimpl_h)
  472.  
  473. zfbcp.$(OBJ): zfbcp.c $(OP) \
  474.   $(gsstruct_h) $(ialloc_h) $(ifilter_h) \
  475.   $(sfilter_h) $(stream_h) $(strimpl_h)
  476.  
  477. # ---------------- Incremental font loading ---------------- #
  478. # (This only works for Type 1 fonts without eexec encryption.)
  479.  
  480. diskfont.dev: $(INT_MAK) $(ECHOGS_XE)
  481.     $(SETMOD) diskfont -ps gs_diskf
  482.  
  483. # ---------------- Double-precision floats ---------------- #
  484.  
  485. double_=zdouble.$(OBJ)
  486. double.dev: $(INT_MAK) $(ECHOGS_XE) $(double_)
  487.     $(SETMOD) double $(double_)
  488.     $(ADDMOD) double -oper zdouble
  489.  
  490. zdouble.$(OBJ): zdouble.c $(OP) $(ctype__h) $(math__h) $(memory__h) $(string__h) \
  491.   $(gxfarith_h) $(store_h)
  492.  
  493. # ---------------- RasterOp ---------------- #
  494. # This should be a separable feature in the core also....
  495.  
  496. rasterop.dev: $(INT_MAK) $(ECHOGS_XE) roplib.dev ropread.dev
  497.     $(SETMOD) rasterop -include roplib ropread
  498.  
  499. ropread_=zrop.$(OBJ)
  500. ropread.dev: $(INT_MAK) $(ECHOGS_XE) $(ropread_)
  501.     $(SETMOD) ropread $(ropread_)
  502.     $(ADDMOD) ropread -oper zrop
  503.  
  504. zrop.$(OBJ): zrop.c $(OP) $(memory__h) \
  505.   $(gsrop_h) $(gxdevice_h) $(idict_h) $(idparam_h) $(igstate_h) $(store_h)
  506.  
  507. # ---------------- PostScript Type 1 (and Type 4) fonts ---------------- #
  508.  
  509. type1.dev: $(INT_MAK) $(ECHOGS_XE) psf1lib.dev psf1read.dev
  510.     $(SETMOD) type1 -include psf1lib psf1read
  511.  
  512. psf1read_=seexec.$(OBJ) zchar1.$(OBJ) zcharout.$(OBJ) zfont1.$(OBJ) zmisc1.$(OBJ)
  513. psf1read.dev: $(INT_MAK) $(ECHOGS_XE) $(psf1read_)
  514.     $(SETMOD) psf1read $(psf1read_)
  515.     $(ADDMOD) psf1read -oper zchar1 zfont1 zmisc1
  516.     $(ADDMOD) psf1read -ps gs_type1
  517.  
  518. seexec.$(OBJ): seexec.c $(AK) $(stdio__h) \
  519.   $(gscrypt1_h) $(scanchar_h) $(sfilter_h) $(strimpl_h)
  520.  
  521. zchar1.$(OBJ): zchar1.c $(OP) \
  522.   $(gspaint_h) $(gspath_h) $(gsstruct_h) \
  523.   $(gxchar_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) \
  524.   $(gxfont_h) $(gxfont1_h) $(gxtype1_h) $(gzstate_h) \
  525.   $(estack_h) $(ialloc_h) $(ichar_h) $(icharout_h) \
  526.   $(idict_h) $(ifont_h) $(igstate_h) $(store_h)
  527.  
  528. zfont1.$(OBJ): zfont1.c $(OP) \
  529.   $(gsmatrix_h) $(gxdevice_h) $(gschar_h) \
  530.   $(gxfixed_h) $(gxfont_h) $(gxfont1_h) \
  531.   $(bfont_h) $(ialloc_h) $(idict_h) $(idparam_h) $(store_h)
  532.  
  533. zmisc1.$(OBJ): zmisc1.c $(OP) \
  534.   $(gscrypt1_h) $(ifilter_h) $(sfilter_h) $(stream_h) $(strimpl_h)
  535.  
  536. # ---------------- TrueType and PostScript Type 42 fonts ---------------- #
  537.  
  538. # Native TrueType support
  539. ttfont.dev: $(INT_MAK) $(ECHOGS_XE) type42.dev
  540.     $(SETMOD) ttfont -include type42
  541.     $(ADDMOD) ttfont -ps gs_mro_e gs_wan_e gs_ttf
  542.  
  543. # Type 42 (embedded TrueType) support
  544. type42read_=zchar42.$(OBJ) zcharout.$(OBJ) zfont42.$(OBJ)
  545. type42.dev: $(INT_MAK) $(ECHOGS_XE) $(type42read_) ttflib.dev
  546.     $(SETMOD) type42 $(type42read_)
  547.     $(ADDMOD) type42 -include ttflib    
  548.     $(ADDMOD) type42 -oper zchar42 zfont42
  549.     $(ADDMOD) type42 -ps gs_typ42
  550.  
  551. zchar42.$(OBJ): zchar42.c $(OP) \
  552.   $(gsmatrix_h) $(gspaint_h) $(gspath_h) \
  553.   $(gxfixed_h) $(gxchar_h) $(gxfont_h) $(gxfont42_h) \
  554.   $(gxistate_h) $(gxpath_h) $(gzstate_h) \
  555.   $(dstack_h) $(estack_h) $(ichar_h) $(icharout_h) \
  556.   $(ifont_h) $(igstate_h) $(store_h)
  557.  
  558. zfont42.$(OBJ): zfont42.c $(OP) \
  559.   $(gsccode_h) $(gsmatrix_h) $(gxfont_h) $(gxfont42_h) \
  560.   $(bfont_h) $(idict_h) $(idparam_h) $(store_h)
  561.  
  562. # ---------------- Obsolete PPM writing facility ---------------- #
  563.  
  564. writeppm_=zwppm.$(OBJ)
  565. writeppm.dev: $(INT_MAK) $(ECHOGS_XE) $(writeppm_)
  566.     $(SETMOD) writeppm $(writeppm_)
  567.     $(ADDMOD) writeppm -oper zwppm
  568.  
  569. zwppm.$(OBJ): zwppm.c $(OP) $(memory__h) \
  570.   $(files_h) $(gscdefs_h) $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h) \
  571.   $(stream_h)
  572.  
  573. # ======================== Precompilation options ======================== #
  574.  
  575. # ---------------- Precompiled fonts ---------------- #
  576. # See fonts.txt for more information.
  577.  
  578. ccfont_h=ccfont.h $(std_h) $(gsmemory_h) $(iref_h) $(ivmspace_h) $(store_h)
  579.  
  580. CCFONT=$(OP) $(ccfont_h)
  581.  
  582. # List the fonts we are going to compile.
  583. # Because of intrinsic limitations in `make', we have to list
  584. # the object file names and the font names separately.
  585. # Because of limitations in the DOS shell, we have to break the fonts up
  586. # into lists that will fit on a single line (120 characters).
  587. # The rules for constructing the .c files from the fonts themselves,
  588. # and for compiling the .c files, are in cfonts.mak, not here.
  589. # For example, to compile the Courier fonts, you should invoke
  590. #    make -f cfonts.mak Courier_o
  591. # By convention, the names of the 35 standard compiled fonts use '0' for
  592. # the foundry name.  This allows users to substitute different foundries
  593. # without having to change this makefile.
  594. ccfonts_ps=gs_ccfnt
  595. ccfonts1_=0agk.$(OBJ) 0agko.$(OBJ) 0agd.$(OBJ) 0agdo.$(OBJ)
  596. ccfonts1=agk agko agd agdo
  597. ccfonts2_=0bkl.$(OBJ) 0bkli.$(OBJ) 0bkd.$(OBJ) 0bkdi.$(OBJ)
  598. ccfonts2=bkl bkli bkd bkdi
  599. ccfonts3_=0crr.$(OBJ) 0cri.$(OBJ) 0crb.$(OBJ) 0crbi.$(OBJ)
  600. ccfonts3=crr cri crb crbi
  601. ccfonts4_=0hvr.$(OBJ) 0hvro.$(OBJ) 0hvb.$(OBJ) 0hvbo.$(OBJ)
  602. ccfonts4=hvr hvro hvb hvbo
  603. ccfonts5_=0hvrrn.$(OBJ) 0hvrorn.$(OBJ) 0hvbrn.$(OBJ) 0hvborn.$(OBJ)
  604. ccfonts5=hvrrn hvrorn hvbrn hvborn
  605. ccfonts6_=0ncr.$(OBJ) 0ncri.$(OBJ) 0ncb.$(OBJ) 0ncbi.$(OBJ)
  606. ccfonts6=ncr ncri ncb ncbi
  607. ccfonts7_=0plr.$(OBJ) 0plri.$(OBJ) 0plb.$(OBJ) 0plbi.$(OBJ)
  608. ccfonts7=plr plri plb plbi
  609. ccfonts8_=0tmr.$(OBJ) 0tmri.$(OBJ) 0tmb.$(OBJ) 0tmbi.$(OBJ)
  610. ccfonts8=tmr tmri tmb tmbi
  611. ccfonts9_=0syr.$(OBJ) 0zcmi.$(OBJ) 0zdr.$(OBJ)
  612. ccfonts9=syr zcmi zdr
  613. # The free distribution includes Bitstream Charter, Utopia, and
  614. # freeware Cyrillic and Kana fonts.  We only provide for compiling
  615. # Charter and Utopia.
  616. ccfonts10free_=bchr.$(OBJ) bchri.$(OBJ) bchb.$(OBJ) bchbi.$(OBJ)
  617. ccfonts10free=chr chri chb chbi
  618. ccfonts11free_=putr.$(OBJ) putri.$(OBJ) putb.$(OBJ) putbi.$(OBJ)
  619. ccfonts11free=utr utri utb utbi
  620. # Uncomment the next 2 lines if you want Charter and Utopia compiled in.
  621. #ccfonts10_=$(ccfonts10free_)
  622. #ccfonts10=$(ccfonts10free)
  623. #ccfonts11_=$(ccfonts11free_)
  624. #ccfonts11=$(ccfonts11free)
  625. # Add your own fonts here if desired.
  626. ccfonts12_=
  627. ccfonts12=
  628. ccfonts13_=
  629. ccfonts13=
  630. ccfonts14_=
  631. ccfonts14=
  632. ccfonts15_=
  633. ccfonts15=
  634. # Select either standard or free configuration here.
  635. # By default, we select the standard configuration.
  636. #ccfonts3_=$(ccfonts3free_)
  637. #ccfonts3=$(ccfonts3free)
  638. #ccfonts9_=$(ccfonts9free_)
  639. #ccfonts9=$(ccfonts9free)
  640. ccfonts3_=$(ccfonts3std_)
  641. ccfonts3=$(ccfonts3std)
  642. ccfonts9_=$(ccfonts9std_)
  643. ccfonts9=$(ccfonts9std)
  644.  
  645. # It's OK for ccfonts_.dev not to be CONFIG-dependent, because it only
  646. # exists during the execution of the following rule.
  647. $(gconfigf_h): $(MAKEFILE) $(INT_MAK) $(GENCONF_XE)
  648.     $(SETMOD) ccfonts_ -font $(ccfonts1)
  649.     $(ADDMOD) ccfonts_ -font $(ccfonts2)
  650.     $(ADDMOD) ccfonts_ -font $(ccfonts3)
  651.     $(ADDMOD) ccfonts_ -font $(ccfonts4)
  652.     $(ADDMOD) ccfonts_ -font $(ccfonts5)
  653.     $(ADDMOD) ccfonts_ -font $(ccfonts6)
  654.     $(ADDMOD) ccfonts_ -font $(ccfonts7)
  655.     $(ADDMOD) ccfonts_ -font $(ccfonts8)
  656.     $(ADDMOD) ccfonts_ -font $(ccfonts9)
  657.     $(ADDMOD) ccfonts_ -font $(ccfonts10)
  658.     $(ADDMOD) ccfonts_ -font $(ccfonts11)
  659.     $(ADDMOD) ccfonts_ -font $(ccfonts12)
  660.     $(ADDMOD) ccfonts_ -font $(ccfonts13)
  661.     $(ADDMOD) ccfonts_ -font $(ccfonts14)
  662.     $(ADDMOD) ccfonts_ -font $(ccfonts15)
  663.     $(EXP)genconf ccfonts_.dev -f $(gconfigf_h)
  664.  
  665. # We separate icfontab.dev from ccfonts.dev so that a customer can put
  666. # compiled fonts into a separate shared library.
  667.  
  668. icfontab=icfontab$(CONFIG)
  669.  
  670. # Define ccfont_table separately, so it can be set from the command line
  671. # to select an alternate compiled font table.
  672. ccfont_table=$(icfontab)
  673.  
  674. $(icfontab).dev: $(MAKEFILE) $(INT_MAK) $(ECHOGS_XE) $(icfontab).$(OBJ) \
  675.   $(ccfonts1_) $(ccfonts2_) $(ccfonts3_) $(ccfonts4_) $(ccfonts5_) \
  676.   $(ccfonts6_) $(ccfonts7_) $(ccfonts8_) $(ccfonts9_) $(ccfonts10_) \
  677.   $(ccfonts11_) $(ccfonts12_) $(ccfonts13_) $(ccfonts14_) $(ccfonts15_)
  678.     $(SETMOD) $(icfontab) -obj $(icfontab).$(OBJ)
  679.     $(ADDMOD) $(icfontab) -obj $(ccfonts1_)
  680.     $(ADDMOD) $(icfontab) -obj $(ccfonts2_)
  681.     $(ADDMOD) $(icfontab) -obj $(ccfonts3_)
  682.     $(ADDMOD) $(icfontab) -obj $(ccfonts4_)
  683.     $(ADDMOD) $(icfontab) -obj $(ccfonts5_)
  684.     $(ADDMOD) $(icfontab) -obj $(ccfonts6_)
  685.     $(ADDMOD) $(icfontab) -obj $(ccfonts7_)
  686.     $(ADDMOD) $(icfontab) -obj $(ccfonts8_)
  687.     $(ADDMOD) $(icfontab) -obj $(ccfonts9_)
  688.     $(ADDMOD) $(icfontab) -obj $(ccfonts10_)
  689.     $(ADDMOD) $(icfontab) -obj $(ccfonts11_)
  690.     $(ADDMOD) $(icfontab) -obj $(ccfonts12_)
  691.     $(ADDMOD) $(icfontab) -obj $(ccfonts13_)
  692.     $(ADDMOD) $(icfontab) -obj $(ccfonts14_)
  693.     $(ADDMOD) $(icfontab) -obj $(ccfonts15_)
  694.  
  695. $(icfontab).$(OBJ): icfontab.c $(AK) $(ccfont_h) $(gconfigf_h)
  696.     $(CP_) $(gconfigf_h) gconfigf.h
  697.     $(CCCF) $(srcdir)/icfontab.c
  698.  
  699. # Strictly speaking, ccfonts shouldn't need to include type1,
  700. # since one could choose to precompile only Type 0 fonts,
  701. # but getting this exactly right would be too much work.
  702. ccfonts=ccfonts$(CONFIG)
  703. $(ccfonts).dev: $(MAKEFILE) $(INT_MAK) type1.dev iccfont.$(OBJ) \
  704.   $(ccfont_table).dev
  705.     $(SETMOD) $(ccfonts) -include type1
  706.     $(ADDMOD) $(ccfonts) -include $(ccfont_table)
  707.     $(ADDMOD) $(ccfonts) -obj iccfont.$(OBJ)
  708.     $(ADDMOD) $(ccfonts) -oper ccfonts
  709.     $(ADDMOD) $(ccfonts) -ps $(ccfonts_ps)
  710.  
  711. iccfont.$(OBJ): iccfont.c $(GH) \
  712.   $(gsstruct_h) $(ccfont_h) $(errors_h) \
  713.   $(ialloc_h) $(idict_h) $(ifont_h) $(iname_h) $(isave_h) $(iutil_h) \
  714.   $(oper_h) $(ostack_h) $(store_h) $(stream_h) $(strimpl_h) $(sfilter_h) $(iscan_h)
  715.     $(CCCF) $(srcdir)/iccfont.c
  716.  
  717. # ---------------- Compiled initialization code ---------------- #
  718.  
  719. # We select either iccinit0 or iccinit1 depending on COMPILE_INITS.
  720.  
  721. iccinit0.$(OBJ): iccinit0.c $(stdpre_h)
  722.     $(CCCF) -I. -I$(srcdir) $(srcdir)/iccinit0.c
  723.  
  724. iccinit1.$(OBJ): gs_init.$(OBJ)
  725.     $(CP_) gs_init.$(OBJ) iccinit1.$(OBJ)
  726.  
  727. # All the gs_*.ps files should be prerequisites of gs_init.c,
  728. # but we don't have any convenient list of them.
  729. gs_init.c: $(GS_INIT) $(GENINIT_XE) $(gconfig_h)
  730.     cp $(srcdir)/gs_*.ps .
  731.     $(EXP)geninit $(GS_INIT) $(gconfig_h) -c gs_init.c
  732.  
  733. gs_init.$(OBJ): gs_init.c $(stdpre_h)
  734.     $(CCCF) -I. -I$(srcdir) -O0 gs_init.c
  735.  
  736. # ======================== PostScript Level 2 ======================== #
  737.  
  738. ###### Include files
  739.  
  740. iutil2_h=iutil2.h
  741.  
  742. ### In addition to the true Level 2 configuration, we define a 'minimal'
  743. ### Level 2 that can be used with -dDEBUG in the 16-bit Windows environment.
  744. ### This also may require trimming down the sizes of the stacks in interp.c.
  745.  
  746. lev2min.dev: $(INT_MAK) $(ECHOGS_XE) \
  747.   psbase.dev devctrl.dev color.dev \
  748.   dps2lib.dev dps2read.dev fdecode.dev path1.dev type1.dev \
  749.   psl2lib.dev psl2read.dev
  750.     $(SETMOD) lev2min -include psbase devctrl color
  751.     $(ADDMOD) lev2min -include dps2lib dps2read fdecode path1 type1
  752.     $(ADDMOD) lev2min -include psl2lib psl2read
  753.     $(ADDMOD) lev2min -emulator PostScript PostScriptLevel1 PostScriptLevel2
  754.  
  755. level2.dev: $(INT_MAK) $(ECHOGS_XE) \
  756.   cie.dev compfont.dev dct.dev devctrl.dev dpsand2.dev filter.dev \
  757.   level1.dev pattern.dev psl2lib.dev psl2read.dev sepr.dev type42.dev \
  758.   xfilter.dev
  759.     $(SETMOD) level2 -include cie compfont dct devctrl dpsand2 filter
  760.     $(ADDMOD) level2 -include level1 pattern psl2lib psl2read sepr xfilter
  761.     $(ADDMOD) level2 -emulator PostScript PostScriptLevel2
  762.  
  763. psl2read1_=iutil2.$(OBJ) zcolor2.$(OBJ) zcsindex.$(OBJ)
  764. psl2read2_=zht2.$(OBJ) zimage2.$(OBJ) zmisc2.$(OBJ)
  765. psl2read_=$(psl2read1_) $(psl2read2_)
  766. # Note that zmisc2 includes both Level 1 and Level 2 operators.
  767. psl2read.dev: $(INT_MAK) $(ECHOGS_XE) $(psl2read_)
  768.     $(SETMOD) psl2read $(psl2read1_)
  769.     $(ADDMOD) psl2read -obj $(psl2read2_)
  770.     $(ADDMOD) psl2read -oper zmisc2
  771.     $(ADDMOD) psl2read -oper zcolor2_l2 zcsindex_l2
  772.     $(ADDMOD) psl2read -oper zht2_l2 zimage2_l2
  773.     $(ADDMOD) psl2read -ps gs_lev2 gs_res
  774.  
  775. iutil2.$(OBJ): iutil2.c $(GXERR) $(memory__h) \
  776.   $(gsparam_h) $(gsutil_h) \
  777.   $(opcheck_h) $(idict_h) $(imemory_h) $(iutil_h) $(iutil2_h)
  778.  
  779. zcolor2.$(OBJ): zcolor2.c $(OP) \
  780.   $(gscolor_h) $(gsmatrix_h) $(gsstruct_h) \
  781.   $(gxcolor2_h) $(gxcspace_h) $(gxdevice_h) $(gxdevmem_h) $(gxfixed_h) $(gxpcolor_h) \
  782.   $(estack_h) $(ialloc_h) $(idict_h) $(idparam_h) $(igstate_h) $(istruct_h) \
  783.   $(store_h)
  784.  
  785. zcsindex.$(OBJ): zcsindex.c $(OP) $(memory__h) \
  786.   $(gscolor_h) $(gsstruct_h) $(gxfixed_h) $(gxcolor2_h) $(gxcspace_h) $(gsmatrix_h) \
  787.   $(ialloc_h) $(icsmap_h) $(estack_h) $(igstate_h) $(ivmspace_h) $(store_h)
  788.  
  789. zht2.$(OBJ): zht2.c $(OP) \
  790.   $(gsstruct_h) $(gxdevice_h) $(gzht_h) \
  791.   $(estack_h) $(ialloc_h) $(icolor_h) $(idict_h) $(idparam_h) $(igstate_h) \
  792.   $(store_h)
  793.  
  794. zimage2.$(OBJ): zimage2.c $(OP) $(math__h) \
  795.   $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsimage_h) $(gsmatrix_h) \
  796.   $(idict_h) $(idparam_h) $(iimage_h) $(ilevel_h) $(igstate_h)
  797.  
  798. zmisc2.$(OBJ): zmisc2.c $(OP) \
  799.   $(idict_h) $(idparam_h) $(iparam_h) $(dstack_h) $(estack_h) \
  800.   $(ilevel_h) $(iname_h) $(iutil2_h) $(ivmspace_h) $(store_h)
  801.  
  802. # ---------------- Device control ---------------- #
  803. # This is a catch-all for setpagedevice and IODevices.
  804.  
  805. devctrl_=zdevice2.$(OBJ) ziodev2.$(OBJ) zmedia2.$(OBJ) zdevcal.$(OBJ)
  806. devctrl.dev: $(INT_MAK) $(ECHOGS_XE) $(devctrl_)
  807.     $(SETMOD) devctrl $(devctrl_)
  808.     $(ADDMOD) devctrl -oper zdevice2_l2 ziodev2_l2 zmedia2_l2
  809.     $(ADDMOD) devctrl -iodev null ram calendar
  810.     $(ADDMOD) devctrl -ps gs_setpd
  811.  
  812. zdevice2.$(OBJ): zdevice2.c $(OP) $(math__h) \
  813.   $(dstack_h) $(estack_h) $(idict_h) $(idparam_h) $(igstate_h) $(iname_h) $(store_h) \
  814.   $(gxdevice_h) $(gsstate_h)
  815.  
  816. ziodev2.$(OBJ): ziodev2.c $(OP) \
  817.   $(gxiodev_h) $(stream_h) $(files_h) $(iparam_h) $(iutil2_h) $(store_h)
  818.  
  819. zmedia2.$(OBJ): zmedia2.c $(OP) $(math__h) $(memory__h) \
  820.   $(gsmatrix_h) $(idict_h) $(idparam_h) $(iname_h) $(store_h)
  821.  
  822. zdevcal.$(OBJ): zdevcal.c $(GH) $(time__h) \
  823.   $(gxiodev_h) $(iparam_h) $(istack_h)
  824.  
  825. # ---------------- Filters other than the ones in sfilter.c ---------------- #
  826.  
  827. # Standard Level 2 decoding filters only.  The PDF configuration uses this.
  828. fdecode_=sfilter2.$(OBJ) zfdecode.$(OBJ)
  829. fdecode.dev: $(INT_MAK) $(ECHOGS_XE) $(fdecode_) cfd.dev lzwd.dev pdiff.dev pngp.dev rld.dev
  830.     $(SETMOD) fdecode $(fdecode_)
  831.     $(ADDMOD) fdecode -include cfd lzwd pdiff pngp rld
  832.     $(ADDMOD) fdecode -oper zfdecode
  833.  
  834. sfilter2.$(OBJ): sfilter2.c $(AK) $(stdio__h)\
  835.   $(sa85x_h) $(scanchar_h) $(sbtx_h) $(sfilter_h) $(strimpl_h)
  836.  
  837. zfdecode.$(OBJ): zfdecode.c $(OP) $(memory__h) \
  838.   $(gsstruct_h) $(ialloc_h) $(idict_h) $(idparam_h) $(ifilter_h) \
  839.   $(sa85x_h) $(scf_h) $(scfx_h) $(sfilter_h) $(slzwx_h) $(spdiffx_h) $(spngpx_h) \
  840.   $(store_h) $(strimpl_h)
  841.  
  842. # Complete Level 2 filter capability.
  843. filter_=zfilter2.$(OBJ)
  844. filter.dev: $(INT_MAK) $(ECHOGS_XE) fdecode.dev $(filter_) cfe.dev lzwe.dev rle.dev
  845.     $(SETMOD) filter -include fdecode
  846.     $(ADDMOD) filter -obj $(filter_)
  847.     $(ADDMOD) filter -include cfe lzwe rle
  848.     $(ADDMOD) filter -oper zfilter2
  849.  
  850. zfilter2.$(OBJ): zfilter2.c $(OP) \
  851.   $(gsstruct_h) $(ialloc_h) $(idict_h) $(idparam_h) $(ifilter_h) $(store_h) \
  852.   $(sfilter_h) $(scfx_h) $(slzwx_h) $(spdiffx_h) $(spngpx_h) $(strimpl_h)
  853.  
  854. # Extensions beyond Level 2 standard.
  855. xfilter_=sbhc.$(OBJ) sbwbs.$(OBJ) shcgen.$(OBJ) smtf.$(OBJ) \
  856.  zfilterx.$(OBJ)
  857. xfilter.dev: $(INT_MAK) $(ECHOGS_XE) $(xfilter_) pcxd.dev pngp.dev
  858.     $(SETMOD) xfilter $(xfilter_)
  859.     $(ADDMOD) xfilter -include pcxd
  860.     $(ADDMOD) xfilter -oper zfilterx
  861.  
  862. sbhc.$(OBJ): sbhc.c $(AK) $(stdio__h) \
  863.   $(gdebug_h) $(sbhc_h) $(shcgen_h) $(strimpl_h)
  864.  
  865. sbwbs.$(OBJ): sbwbs.c $(AK) $(stdio__h) $(memory__h) \
  866.   $(gdebug_h) $(sbwbs_h) $(sfilter_h) $(strimpl_h)
  867.  
  868. shcgen.$(OBJ): shcgen.c $(AK) $(stdio__h) \
  869.   $(gdebug_h) $(gserror_h) $(gserrors_h) \
  870.   $(scommon_h) $(shc_h) $(shcgen_h)
  871.  
  872. smtf.$(OBJ): smtf.c $(AK) $(stdio__h) \
  873.   $(smtf_h) $(strimpl_h)
  874.  
  875. zfilterx.$(OBJ): zfilterx.c $(OP) \
  876.   $(gsstruct_h) $(ialloc_h) $(idict_h) $(idparam_h) $(ifilter_h) \
  877.   $(store_h) $(sfilter_h) $(sbhc_h) $(sbtx_h) $(sbwbs_h) $(shcgen_h) \
  878.   $(smtf_h) $(strimpl_h)
  879.  
  880. # ---------------- Binary tokens ---------------- #
  881.  
  882. btoken_=iscanbin.$(OBJ) zbseq.$(OBJ)
  883. btoken.dev: $(INT_MAK) $(ECHOGS_XE) $(btoken_)
  884.     $(SETMOD) btoken $(btoken_)
  885.     $(ADDMOD) btoken -oper zbseq_l2
  886.     $(ADDMOD) btoken -ps gs_btokn
  887.  
  888. bseq_h=bseq.h
  889. btoken_h=btoken.h
  890.  
  891. iscanbin.$(OBJ): iscanbin.c $(GH) $(math__h) $(errors_h) \
  892.   $(gsutil_h) $(ialloc_h) $(ibnum_h) $(idict_h) $(iname_h) \
  893.   $(iscan_h) $(iutil_h) $(ivmspace_h) \
  894.   $(bseq_h) $(btoken_h) $(dstack_h) $(ostack_h) \
  895.   $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  896.  
  897. zbseq.$(OBJ): zbseq.c $(OP) \
  898.   $(ialloc_h) $(idict_h) $(isave_h) $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h) \
  899.   $(iname_h) $(ibnum_h) $(btoken_h) $(bseq_h)
  900.  
  901. # ---------------- User paths & insideness testing ---------------- #
  902.  
  903. upath_=zupath.$(OBJ) ibnum.$(OBJ)
  904. upath.dev: $(INT_MAK) $(ECHOGS_XE) $(upath_)
  905.     $(SETMOD) upath $(upath_)
  906.     $(ADDMOD) upath -oper zupath_l2
  907.  
  908. zupath.$(OBJ): zupath.c $(OP) \
  909.   $(idict_h) $(dstack_h) $(iutil_h) $(igstate_h) $(store_h) $(stream_h) $(ibnum_h) \
  910.   $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gsstate_h) \
  911.   $(gxfixed_h) $(gxdevice_h) $(gzpath_h) $(gzstate_h)
  912.  
  913. # -------- Additions common to Display PostScript and Level 2 -------- #
  914.  
  915. dpsand2.dev: $(INT_MAK) $(ECHOGS_XE) btoken.dev color.dev upath.dev dps2lib.dev dps2read.dev
  916.     $(SETMOD) dpsand2 -include btoken color upath dps2lib dps2read
  917.  
  918. dps2read_=ibnum.$(OBJ) zchar2.$(OBJ) zdps1.$(OBJ) zvmem2.$(OBJ)
  919. # Note that zvmem2 includes both Level 1 and Level 2 operators.
  920. dps2read.dev: $(INT_MAK) $(ECHOGS_XE) $(dps2read_)
  921.     $(SETMOD) dps2read $(dps2read_)
  922.     $(ADDMOD) dps2read -oper zvmem2
  923.     $(ADDMOD) dps2read -oper ireclaim_l2 zchar2_l2 zdps1_l2
  924.     $(ADDMOD) dps2read -ps gs_dps1
  925.  
  926. ibnum.$(OBJ): ibnum.c $(GH) $(math__h) \
  927.   $(errors_h) $(stream_h) $(ibnum_h) $(imemory_h) $(iutil_h)
  928.  
  929. zchar2.$(OBJ): zchar2.c $(OP) \
  930.   $(gschar_h) $(gsmatrix_h) $(gspath_h) $(gsstruct_h) $(gxfixed_h) $(gxfont_h) \
  931.   $(ialloc_h) $(ichar_h) $(estack_h) $(ifont_h) $(iname_h) $(igstate_h) \
  932.   $(store_h) $(stream_h) $(ibnum_h)
  933.  
  934. zdps1.$(OBJ): zdps1.c $(OP) \
  935.   $(gsmatrix_h) $(gspath_h) $(gspath2_h) $(gsstate_h) \
  936.   $(ialloc_h) $(ivmspace_h) $(igstate_h) $(store_h) $(stream_h) $(ibnum_h)
  937.  
  938. zvmem2.$(OBJ): zvmem2.c $(OP) \
  939.   $(estack_h) $(ialloc_h) $(ivmspace_h) $(store_h)
  940.  
  941. # ---------------- Display PostScript ---------------- #
  942.  
  943. # We should include zcontext, but it isn't in good enough shape yet:
  944. #    $(ADDMOD) dps -oper zcontext_l2
  945. dps_=
  946. dps.dev: $(INT_MAK) $(ECHOGS_XE) dpsand2.dev $(dps_)
  947.     $(SETMOD) dps -include dpsand2
  948.     $(ADDMOD) dps -obj $(dps_)
  949.  
  950. zcontext.$(OBJ): zcontext.c $(OP) \
  951.   $(gsstruct_h) $(gsutil_h) \
  952.   $(idict_h) $(istruct_h) $(dstack_h) $(estack_h) $(igstate_h) $(store_h)
  953.  
  954. # -------- Composite (PostScript Type 0) font support -------- #
  955.  
  956. compfont.dev: $(INT_MAK) $(ECHOGS_XE) psf0lib.dev psf0read.dev
  957.     $(SETMOD) compfont -include psf0lib psf0read
  958.  
  959. psf0read_=zchar2.$(OBJ) zfont0.$(OBJ)
  960. psf0read.dev: $(INT_MAK) $(ECHOGS_XE) $(psf0read_)
  961.     $(SETMOD) psf0read $(psf0read_)
  962.     $(ADDMOD) psf0read -oper zfont0 zchar2
  963.  
  964. zfont0.$(OBJ): zfont0.c $(OP) \
  965.   $(gsmatrix_h) $(gsstruct_h) $(gxdevice_h) $(gxfont_h) $(gxfont0_h) \
  966.   $(ialloc_h) $(bfont_h) $(idict_h) $(igstate_h) $(store_h)
  967.  
  968. # ---------------- CID/CMap font support ---------------- #
  969. #**************** NOT REAL YET.  DON'T USE. ****************#
  970.  
  971. cidfont.dev: $(INT_MAK) $(ECHOGS_XE) compfont.dev psf1read.dev
  972.     $(SETMOD) cidfont -include compfont psf1read
  973.     $(ADDMOD) cidfont -ps gs_cidfn gs_cmap
  974.  
  975. # ---------------- CIE color ---------------- #
  976.  
  977. cieread_=zcie.$(OBJ) zcrd.$(OBJ)
  978. cie.dev: $(INT_MAK) $(ECHOGS_XE) $(cieread_) cielib.dev
  979.     $(SETMOD) cie $(cieread_)
  980.     $(ADDMOD) cie -oper zcie_l2 zcrd_l2
  981.     $(ADDMOD) cie -include cielib
  982.  
  983. icie_h=icie.h
  984.  
  985. zcie.$(OBJ): zcie.c $(OP) $(math__h) $(memory__h) \
  986.   $(gscolor2_h) $(gscie_h) $(gsstruct_h) $(gxcspace_h) \
  987.   $(ialloc_h) $(icie_h) $(idict_h) $(idparam_h) $(estack_h) \
  988.   $(isave_h) $(igstate_h) $(ivmspace_h) $(store_h)
  989.  
  990. zcrd.$(OBJ): zcrd.c $(OP) $(math__h) \
  991.   $(gscspace_h) $(gscolor2_h) $(gscie_h) $(gsstruct_h) \
  992.   $(ialloc_h) $(icie_h) $(idict_h) $(idparam_h) $(estack_h) \
  993.   $(isave_h) $(igstate_h) $(ivmspace_h) $(store_h)
  994.  
  995. # ---------------- Pattern color ---------------- #
  996.  
  997. pattern.dev: $(INT_MAK) $(ECHOGS_XE) patlib.dev patread.dev
  998.     $(SETMOD) pattern -include patlib patread
  999.  
  1000. patread_=zpcolor.$(OBJ)
  1001. patread.dev: $(INT_MAK) $(ECHOGS_XE) $(patread_)
  1002.     $(SETMOD) patread $(patread_)
  1003.     $(ADDMOD) patread -oper zpcolor_l2
  1004.  
  1005. zpcolor.$(OBJ): zpcolor.c $(OP) \
  1006.   $(gscolor_h) $(gsmatrix_h) $(gsstruct_h) \
  1007.   $(gxcolor2_h) $(gxcspace_h) $(gxdevice_h) $(gxdevmem_h) $(gxfixed_h) $(gxpcolor_h) \
  1008.   $(estack_h) $(ialloc_h) $(idict_h) $(idparam_h) $(igstate_h) $(istruct_h) \
  1009.   $(store_h)
  1010.  
  1011. # ---------------- Separation color ---------------- #
  1012.  
  1013. seprread_=zcssepr.$(OBJ)
  1014. sepr.dev: $(INT_MAK) $(ECHOGS_XE) $(seprread_) seprlib.dev
  1015.     $(SETMOD) sepr $(seprread_)
  1016.     $(ADDMOD) sepr -oper zcssepr_l2
  1017.     $(ADDMOD) sepr -include seprlib
  1018.  
  1019. zcssepr.$(OBJ): zcssepr.c $(OP) \
  1020.   $(gscolor_h) $(gsmatrix_h) $(gsstruct_h) \
  1021.   $(gxcolor2_h) $(gxcspace_h) $(gxfixed_h) \
  1022.   $(ialloc_h) $(icsmap_h) $(estack_h) $(igstate_h) $(ivmspace_h) $(store_h)
  1023.  
  1024. # ---------------- DCT filters ---------------- #
  1025. # The definitions for jpeg*.dev are in jpeg.mak.
  1026.  
  1027. dct.dev: $(INT_MAK) $(ECHOGS_XE) dcte.dev dctd.dev
  1028.     $(SETMOD) dct -include dcte dctd
  1029.  
  1030. # Common code
  1031.  
  1032. dctc_=sdctc.$(OBJ) sjpegc.$(OBJ) zfdctc.$(OBJ)
  1033.  
  1034. sdctc.$(OBJ): sdctc.c $(AK) $(stdio__h) \
  1035.   $(sdct_h) $(strimpl_h) \
  1036.   jerror.h jpeglib.h
  1037.  
  1038. sjpegc.$(OBJ): sjpegc.c $(AK) $(stdio__h) $(gx_h)\
  1039.   $(gserrors_h) $(sjpeg_h) $(sdct_h) $(strimpl_h) \
  1040.   jerror.h jpeglib.h
  1041.  
  1042. zfdctc.$(OBJ): zfdctc.c $(GH) $(errors_h) $(opcheck_h) \
  1043.   $(idict_h) $(idparam_h) $(imemory_h) \
  1044.   $(ipacked_h) $(sdct_h) $(sjpeg_h) $(strimpl_h) \
  1045.   jpeglib.h
  1046.  
  1047. # Encoding (compression)
  1048.  
  1049. dcte_=$(dctc_) sdcte.$(OBJ) sjpege.$(OBJ) zfdcte.$(OBJ)
  1050. dcte.dev: $(INT_MAK) $(ECHOGS_XE) jpege.dev $(dcte_)
  1051.     $(SETMOD) dcte -include jpege
  1052.     $(ADDMOD) dcte -obj $(dcte_)
  1053.     $(ADDMOD) dcte -oper zfdcte
  1054.  
  1055. sdcte.$(OBJ): sdcte.c $(AK) $(memory__h) $(stdio__h) $(gdebug_h)\
  1056.   $(sdct_h) $(sjpeg_h) $(strimpl_h) \
  1057.   jerror.h jpeglib.h
  1058.  
  1059. sjpege.$(OBJ): sjpege.c $(AK) $(stdio__h) $(gx_h)\
  1060.   $(gserrors_h) $(sjpeg_h) $(sdct_h) $(strimpl_h) \
  1061.   jerror.h jpeglib.h
  1062.  
  1063. zfdcte.$(OBJ): zfdcte.c $(OP) \
  1064.   $(idict_h) $(idparam_h) $(ifilter_h) $(sdct_h) $(sjpeg_h) $(strimpl_h) \
  1065.   jpeglib.h
  1066.  
  1067. # Decoding (decompression)
  1068.  
  1069. dctd_=$(dctc_) sdctd.$(OBJ) sjpegd.$(OBJ) zfdctd.$(OBJ)
  1070. dctd.dev: $(INT_MAK) $(ECHOGS_XE) jpegd.dev $(dctd_)
  1071.     $(SETMOD) dctd -include jpegd
  1072.     $(ADDMOD) dctd -obj $(dctd_)
  1073.     $(ADDMOD) dctd -oper zfdctd
  1074.  
  1075. sdctd.$(OBJ): sdctd.c $(AK) $(memory__h) $(stdio__h) $(gdebug_h)\
  1076.   $(sdct_h) $(sjpeg_h) $(strimpl_h) \
  1077.   jerror.h jpeglib.h
  1078.  
  1079. sjpegd.$(OBJ): sjpegd.c $(AK) $(stdio__h) $(gx_h)\
  1080.   $(gserrors_h) $(sjpeg_h) $(sdct_h) $(strimpl_h) \
  1081.   jerror.h jpeglib.h
  1082.  
  1083. zfdctd.$(OBJ): zfdctd.c $(OP) \
  1084.   $(sdct_h) $(sjpeg_h) $(strimpl_h) \
  1085.   jpeglib.h
  1086.  
  1087. # ---------------- zlib/Flate filters ---------------- #
  1088.  
  1089. fzlib.dev: $(INT_MAK) $(ECHOGS_XE) zfzlib.$(OBJ) szlibe.dev szlibd.dev
  1090.     $(SETMOD) fzlib -include szlibe szlibd
  1091.     $(ADDMOD) fzlib -obj zfzlib.$(OBJ)
  1092.     $(ADDMOD) fzlib -oper zfzlib
  1093.  
  1094. zfzlib.$(OBJ): zfzlib.c $(OP) \
  1095.   $(errors_h) $(idict_h) $(ifilter_h) \
  1096.   $(spdiffx_h) $(spngpx_h) $(strimpl_h) $(szlibx_h)
  1097.     $(CCC) -I. -I$(ZSRCDIR) $(srcdir)/zfzlib.c
  1098.  
  1099. # ================================ PDF ================================ #
  1100.  
  1101. # We need most of the Level 2 interpreter to do PDF, but not all of it.
  1102. # In fact, we don't even need all of a Level 1 interpreter.
  1103.  
  1104. # Because of the way the PDF encodings are defined, they must get loaded
  1105. # before we install the Level 2 resource machinery.
  1106. # On the other hand, the PDF .ps files must get loaded after
  1107. # level2dict is defined.
  1108. pdfmin.dev: $(INT_MAK) $(ECHOGS_XE) \
  1109.   psbase.dev color.dev dps2lib.dev dps2read.dev \
  1110.   fdecode.dev type1.dev pdffonts.dev psl2lib.dev psl2read.dev pdfread.dev
  1111.     $(SETMOD) pdfmin -include psbase color dps2lib dps2read
  1112.     $(ADDMOD) pdfmin -include fdecode type1
  1113.     $(ADDMOD) pdfmin -include pdffonts psl2lib psl2read pdfread
  1114.     $(ADDMOD) pdfmin -emulator PDF
  1115.  
  1116. pdf.dev: $(INT_MAK) $(ECHOGS_XE) \
  1117.   pdfmin.dev cie.dev dctd.dev
  1118.     $(SETMOD) pdf -include pdfmin cie dctd
  1119.  
  1120. # Reader only
  1121.  
  1122. pdffonts.dev: $(INT_MAK) $(ECHOGS_XE) \
  1123.   gs_mex_e.ps gs_mro_e.ps gs_pdf_e.ps gs_wan_e.ps
  1124.     $(SETMOD) pdffonts -ps gs_mex_e gs_mro_e gs_pdf_e gs_wan_e
  1125.  
  1126. # pdf_2ps must be the last .ps file loaded.
  1127. pdfread.dev: $(INT_MAK) $(ECHOGS_XE) fzlib.dev
  1128.     $(SETMOD) pdfread -include fzlib
  1129.     $(ADDMOD) pdfread -ps gs_pdf gs_l2img
  1130.     $(ADDMOD) pdfread -ps pdf_base pdf_draw pdf_font pdf_main pdf_sec
  1131.     $(ADDMOD) pdfread -ps pdf_2ps
  1132.  
  1133. # Writer
  1134.  
  1135. pdfwrite1_=gdevpdf.$(OBJ)
  1136. pdfwrite2_=gdevpdfi.$(OBJ) gdevpdfm.$(OBJ) gdevpdfp.$(OBJ) gdevpdft.$(OBJ)
  1137. pdfwrite3_=gsflip.$(OBJ) sfilter2.$(OBJ) sstring.$(OBJ)
  1138. pdfwrite_=$(pdfwrite1_) $(pdfwrite2_) $(pdfwrite3_)
  1139. pdfwrite.dev: $(INT_MAK) $(ECHOGS_XE) $(pdfwrite_) gs_pdfwr.ps \
  1140.   cfe.dev dcte.dev lzwe.dev rle.dev
  1141.     $(SETDEV) pdfwrite $(pdfwrite1_)
  1142.     $(ADDMOD) pdfwrite $(pdfwrite2_)
  1143.     $(ADDMOD) pdfwrite $(pdfwrite3_)
  1144.     $(ADDMOD) pdfwrite -ps gs_pdfwr
  1145.     $(ADDMOD) pdfwrite -include cfe dcte lzwe rle
  1146.  
  1147. gdevpdfx_h=gdevpdfx.h $(gsparam_h) $(gxdevice_h) $(gxline_h) $(scommon_h)
  1148.  
  1149. gdevpdf.$(OBJ): gdevpdf.c $(math__h) $(string__h) $(time__h) $(gp_h) \
  1150.   $(gdevpdfx_h) $(gscdefs_h) $(gserrors_h) \
  1151.   $(gx_h) $(gxdevice_h) $(gxfixed_h) $(gxistate_h) $(gxpaint_h) \
  1152.   $(gzcpath_h) $(gzpath_h) $(scfx_h) $(strimpl_h)
  1153.  
  1154. gdevpdfi.$(OBJ): gdevpdfi.c $(memory__h) $(gx_h) \
  1155.   $(gdevpdfx_h) $(gserrors_h) $(gsflip_h) $(gxcspace_h) $(gxistate_h) \
  1156.   $(sa85x_h) $(scfx_h) $(srlx_h) $(stream_h) $(strimpl_h)
  1157.  
  1158. gdevpdfm.$(OBJ): gdevpdfm.c $(memory__h) $(string__h) $(gx_h) \
  1159.   $(gdevpdfx_h) $(gserrors_h) $(gsutil_h)
  1160.  
  1161. gdevpdfp.$(OBJ): gdevpdfp.c $(string__h) $(gx_h) $(gp_h) \
  1162.   $(gdevpdfx_h) $(gserrors_h) $(gsutil_h) \
  1163.   $(scfx_h) $(slzwx_h) $(srlx_h) $(strimpl_h)
  1164.  
  1165. gdevpdft.$(OBJ): gdevpdft.c $(string__h) $(gx_h) \
  1166.   $(gdevpdfx_h) $(gserrors_h) $(gsutil_h)
  1167.  
  1168. # ============================= Main program ============================== #
  1169.  
  1170. gs.$(OBJ): gs.c $(GH) \
  1171.   $(imain_h) $(imainarg_h) $(iminst_h)
  1172.  
  1173. imainarg.$(OBJ): imainarg.c $(GH) $(ctype__h) $(memory__h) $(string__h) \
  1174.   $(gp_h) \
  1175.   $(gscdefs_h) $(gsdevice_h) $(gsmdebug_h) $(gxdevice_h) $(gxdevmem_h) \
  1176.   $(errors_h) $(estack_h) $(files_h) \
  1177.   $(ialloc_h) $(imain_h) $(imainarg_h) $(iminst_h) \
  1178.   $(iname_h) $(interp_h) $(iscan_h) $(iutil_h) $(ivmspace_h) \
  1179.   $(ostack_h) $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  1180.  
  1181. imain.$(OBJ): imain.c $(GH) \
  1182.   $(gp_h) $(gslib_h) $(gsmatrix_h) $(gsutil_h) $(gxdevice_h) \
  1183.   $(dstack_h) $(errors_h) $(estack_h) $(files_h) \
  1184.   $(ialloc_h) $(idebug_h) $(idict_h) $(iname_h) $(interp_h) \
  1185.   $(isave_h) $(iscan_h) $(ivmspace_h) \
  1186.   $(main_h) $(oper_h) $(ostack_h) $(sfilter_h) $(store_h) $(strimpl_h)
  1187.  
  1188. interp.$(OBJ): interp.c $(GH) $(memory__h) $(string__h) \
  1189.   $(dstack_h) $(errors_h) $(estack_h) $(files_h) \
  1190.   $(ialloc_h) $(iastruct_h) $(inamedef_h) $(idict_h) $(interp_h) $(ipacked_h) \
  1191.   $(iscan_h) $(isave_h) $(istack_h) $(iutil_h) $(ivmspace_h) \
  1192.   $(oper_h) $(ostack_h) $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  1193.     $(CCINT) -I. $(srcdir)/interp.c
  1194.  
  1195. ireclaim.$(OBJ): ireclaim.c $(GH) \
  1196.   $(errors_h) $(gsstruct_h) $(iastate_h) $(opdef_h) $(store_h) \
  1197.   $(dstack_h) $(estack_h) $(ostack_h)
  1198.